package com.hs.teachsystem.controller;

import com.hs.teachsystem.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**系统控制器
 * Created by hs on 2017/7/14.
 */
@Controller
@RequestMapping("/system")
public class SystemController extends MyController{
    @Autowired
    private SystemService systemService;
    /**
     * 查询日志记录
     * @return
     */
    @RequestMapping("/queryLog")
    public ModelAndView queryLog(){
        return new ModelAndView();
    }

    /**
     * 备份日志到文件中
     * @return
     */
    @RequestMapping("/backUp")
    public Object backUp(){
        Map<String,Object> result=null;
        return  result;
    }

    /**
     * 关闭某个功能
     * @return
     */
    @RequestMapping("/openFunction")
    public Object openFunction(){
        Map<String,Object> result=null;
        return result;
    }

    /**
     * 开启某个功能
     * @return
     */
    @RequestMapping("/closeFunction")
    public Object closeFunction(){
        Map<String,Object> result=null;
        return result;
    }

}
